credit2: Add context_saved scheduler callback
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Apr 2010 11:03:27 +0000 (12:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 14 Apr 2010 11:03:27 +0000 (12:03 +0100)
commitbe9a0806e197f4fd3fa64d6535e74e16d4338a83
tree4a6a4f6544b9663e00da1f294d9aa81d2615449a
parentf426678bf2ebd676770a01092636d481b9a8f20b
credit2: Add context_saved scheduler callback

Because credit2 shares a runqueue between several cpus, it needs
to know when a scheduled-out process has finally been context-switched
away so that it can be added to the runqueue again.  (Otherwise it may
be grabbed by another processor before the context has been properly
saved.)

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/schedule.c
xen/include/xen/sched-if.h